rmdir \S \Q %1

mkdir %1\lib\Win\x86
mkdir %1\lib\Win\x64
mkdir %1\com\indigo\

copy LICENSE.GPL %1\
copy jni\lib\Win\x86\dingojni.dll %1\lib\Win\x86\
copy jni\lib\Win\x86\dingo.dll %1\lib\Win\x86\
copy jni\lib\Win\x86\zlib1.dll %1\lib\Win\x86\
copy jni\lib\Win\x86\libcairo-2.dll %1\lib\Win\x86\
copy jni\lib\Win\x86\libpng12-0.dll %1\lib\Win\x86\

copy jni\lib\Win\x64\dingojni.dll %1\lib\Win\x64\
copy jni\lib\Win\x64\dingo.dll %1\lib\Win\x64\
copy jni\lib\Win\x64\libgcc_s_1.dll %1\lib\Win\x64\
copy jni\lib\Win\x64\zlib1.dll %1\lib\Win\x64\
copy jni\lib\Win\x64\libcairo-2.dll %1\lib\Win\x64\
copy jni\lib\Win\x64\libpng12-0.dll %1\lib\Win\x64\

copy java\dist\dingo-java.jar %1\

zip -r -9 %1.zip %1
